package com.jsj.bootdemo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jsj.bootdemo.mapper.powerPublicsecurityMapper;
import com.jsj.bootdemo.pojo.publicSecurity;
import com.jsj.bootdemo.pojo.structurePublicsecurity;
import com.jsj.bootdemo.service.powerPublicsecurityService;
import org.apache.commons.lang3.StringUtils;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.jdbc.SQL;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;


@Service
public class PowerPublicsecurityServiceImpl extends ServiceImpl<powerPublicsecurityMapper, structurePublicsecurity> implements powerPublicsecurityService {


    @Autowired
    powerPublicsecurityMapper powerPublicsecurityMapper;


    @Override
    public String publicSecurityInfo() {
        String s = powerPublicsecurityMapper.publicSecurityInfo();
        System.out.println(s);
        return s;
    }

    public List<publicSecurity> SecurityInfoSpecific(){
        String field = powerPublicsecurityMapper.publicSecurityInfo();
        System.out.println("field = " + field);
//        field = "name";
        List<publicSecurity> publicSecurity =
                powerPublicsecurityMapper.seepublicSecurity(field);
        System.out.println("publicSecurity = " + publicSecurity);
        return publicSecurity;
    }

}
